import request from "@/utils/request";

//查询全部部门数据
export const queryAllApi = () => {
    return request.get('/clazzs');
}

//新增
export const addclazzApi = (clazz) => request.post('/clazzs',clazz);


//根据id查询
export const queryByIdApi = (id) => request.get(`/clazzs/${id}`);

//修改部门
export const updateclazzApi = (data) => request.put('/clazzs', data)

//删除部门
export const deleteclazzApi = (id) => request.delete(`/clazzs?id=${id}`)